package com.yenlien.traceyun.plant.controller.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jialong
 * @date 2021/04/02
 * @description: 根据地块ID获取科百和新风向实时数据接口返回的VO
 **/
@Data
@AllArgsConstructor
public class XinFengXiangAndKeBai implements Serializable {

    private static final long serialVersionUID = 8427276480777046865L;

    /**
     * 数据类型  1=新风向,  2=科百
     */
    private String dataType;

    /**
     * 自己平台的设备ID
     */
    private String equipmentId;

    /**
     * 新风向平台的设备ID或者科百平台的设备编号 nodecode
     */
    private String deviceId;

    /**
     * 地块ID  (一个公司可以对应多个地块)
     */
    private String baseSoilId;

    /**
     * 自己平台的设备名
     */
    private String equipmentName;

    /**
     * 公司ID
     */
    private String companyId;


    /**
     * 科百节点名称
     */
    private String nodename;

    /**
     * 科百传感器单位
     */
//    private String unit;

    /**
     * 科百实时值
     */
//    private String senval;

    /**
     * 科百传感器类型
     */
//    private String sensortype;

    /**
     * 节点编码, 相当于新风向里的设备编码  科百平台的设备ID
     */
//    private String nodecode;

    /**
     * 科百传感器名称
     */
    private String sensorname;

    /**
     * 科百平台的采集时间
     */
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date thattime;

    /**
     * 科百测站名称
     */
    private String stationname;

    /**
     * 科百传感器编码
     */
//    private String sensorcode;

    /**
     * 科百测站编码
     */
    private String stationcode;


    /**
     * 新风向或科百的采集时间
     */
    private Date dateTime;

    /**
     * 新风向或科百的单位
     */
    private String eUnit;

    /**
     * 新风向或科百的值
     */
    private String eValue;

    /**
     * 新风向通道
     */
    private String eKey;

    /**
     * 新风向或科百类型, 如 风速，大气温度
     */
    private String eName;

    /**
     * 新风向或科百传感器编号 (一个设备可对应多个传感器)
     */
    private String eNum;


    /**
     * 创建时间
     */
    private Date createTime;


    // 科百
    public XinFengXiangAndKeBai(String dataType, String equipmentId, String deviceId, String baseSoilId, String equipmentName, String companyId, String nodename, String sensorname, String stationname, String stationcode, Date dateTime, String eUnit, String eValue, String eName, String eNum, Date createTime) {
        this.dataType = dataType;
        this.equipmentId = equipmentId;
        this.deviceId = deviceId;
        this.baseSoilId = baseSoilId;
        this.equipmentName = equipmentName;
        this.companyId = companyId;
        this.nodename = nodename;
        this.sensorname = sensorname;
        this.stationname = stationname;
        this.stationcode = stationcode;
        this.dateTime = dateTime;
        this.eUnit = eUnit;
        this.eValue = eValue;
        this.eName = eName;
        this.eNum = eNum;
        this.createTime = createTime;
    }

    // 新风向
    public XinFengXiangAndKeBai(String dataType, String equipmentId, String deviceId, String baseSoilId, String equipmentName, String companyId, Date dateTime, String eUnit, String eValue, String eKey, String eName, String eNum, Date createTime) {
        this.dataType = dataType;
        this.equipmentId = equipmentId;
        this.deviceId = deviceId;
        this.baseSoilId = baseSoilId;
        this.equipmentName = equipmentName;
        this.companyId = companyId;
        this.dateTime = dateTime;
        this.eUnit = eUnit;
        this.eValue = eValue;
        this.eKey = eKey;
        this.eName = eName;
        this.eNum = eNum;
        this.createTime = createTime;
    }

    public XinFengXiangAndKeBai() {
    }


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getBaseSoilId() {
        return baseSoilId;
    }

    public void setBaseSoilId(String baseSoilId) {
        this.baseSoilId = baseSoilId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getNodename() {
        return nodename;
    }

    public void setNodename(String nodename) {
        this.nodename = nodename;
    }

    public String getSensorname() {
        return sensorname;
    }

    public void setSensorname(String sensorname) {
        this.sensorname = sensorname;
    }

    public String getStationname() {
        return stationname;
    }

    public void setStationname(String stationname) {
        this.stationname = stationname;
    }

    public String getStationcode() {
        return stationcode;
    }

    public void setStationcode(String stationcode) {
        this.stationcode = stationcode;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String geteUnit() {
        return eUnit;
    }

    public void seteUnit(String eUnit) {
        this.eUnit = eUnit;
    }

    public String geteValue() {
        return eValue;
    }

    public void seteValue(String eValue) {
        this.eValue = eValue;
    }

    public String geteKey() {
        return eKey;
    }

    public void seteKey(String eKey) {
        this.eKey = eKey;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public String geteNum() {
        return eNum;
    }

    public void seteNum(String eNum) {
        this.eNum = eNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
